const Net = require('../../common.js')
Page({
  data: {
    list: []
  },
  onLoad: function (options) {
    this.onPageInfo()
  },
  onPageInfo() {
    Net.link('v1/cases', {now_page:1}, function (rep) {
      if (rep.data.code == 6 || rep.data.mag == "Token验证失败") {
        Net.filaModal()
      }
      Net.data({
        list: rep.data.data.list
      });
    }, "GET")
  },
  onCreateInfo(e) {
    Net.PageRoter('_ActiveityCreate', '?id=' + e.currentTarget.id+'&price=' +e.currentTarget.dataset.price, 'nav');
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
  onShareAppMessage: function () {}
})